package com.ruanyun.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户岗位表
 * </p>
 *
 * @author wangchuan
 * @since 2019-08-10
 */
@TableName("sys_user_sta")
public class UserSta implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "user_sta_id", type = IdType.ID_WORKER)
    private Long userStaId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 岗位id
     */
    @TableField("sta_id")
    private Long staId;


    public Long getUserStaId() {
        return userStaId;
    }

    public void setUserStaId(Long userStaId) {
        this.userStaId = userStaId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getStaId() {
        return staId;
    }

    public void setStaId(Long staId) {
        this.staId = staId;
    }

    @Override
    public String toString() {
        return "UserSta{" +
        "userStaId=" + userStaId +
        ", userId=" + userId +
        ", staId=" + staId +
        "}";
    }
}
